//
//  NSMutableDictionary+Tools.m
//  MiaoPai
//
//  Created by jiaxuzhou on 2017/6/10.
//  Copyright © 2017年 Jeakin. All rights reserved.
//
//


#import "NSMutableDictionary+Tools.h"
#import "NSString+Tools.h"


@implementation NSMutableDictionary (Tools)

void mp_setValidObjectForDictionary(NSMutableDictionary *dic, id key, id value)
{
    if(MPT_Object_Is_Valid(value) && MPT_Object_Is_Valid(key) && [key conformsToProtocol:@protocol(NSCopying)])
    {
        [dic setValue:value forKey:key];
    }
}


@end
